//
//  ClassifySearchCollectionViewCell.m
//  Mahjong
//
//  Created by mc on 16/9/8.
//  Copyright © 2016年 Elliot. All rights reserved.
//

#import "ClassifySearchCollectionViewCell.h"

@implementation ClassifySearchCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.lableSeach = [[UILabel alloc] init];
        self.lableSeach.backgroundColor = [UIColor colorWithWhite:0.900 alpha:1.000];
        self.lableSeach.textAlignment = NSTextAlignmentCenter;
        self.lableSeach.textColor = [UIColor colorWithWhite:0.500 alpha:1.000];
        self.lableSeach.layer.cornerRadius = 5;
        self.lableSeach.clipsToBounds = YES;
        [self.contentView addSubview:self.lableSeach];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    [super applyLayoutAttributes:layoutAttributes];
    self.lableSeach.frame = self.contentView.frame;
}

- (void)awakeFromNib {
    // Initialization code
}

@end
